package com.ruoyi.community.domain.integral;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分详情对象 int_details
 * 
 * @author ruoyi
 * @date 2021-08-08
 */
public class IntDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户在某个小区的明细 */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 在哪个小区的操作 */
    @Excel(name = "在哪个小区的操作")
    private Integer communityId;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    /** 操作类型，例如：观看广告 */
    @Excel(name = "操作类型，例如：观看广告")
    private Integer operationId;

    /** 详细操作,例如：可口可乐，抵扣物业费 */
    @Excel(name = "详细操作,例如：可口可乐，抵扣物业费")
    private String content;

    /** 1,收入，0支出 */
    @Excel(name = "1,收入，0支出")
    private Integer type;

    /** 积分值 */
    @Excel(name = "积分值")
    private Integer integral;

    /** 用户姓名 **/
    private String nickName;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCommunityId(Integer communityId) 
    {
        this.communityId = communityId;
    }

    public Integer getCommunityId() 
    {
        return communityId;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setOperationId(Integer operationId) 
    {
        this.operationId = operationId;
    }

    public Integer getOperationId() 
    {
        return operationId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setIntegral(Integer integral) 
    {
        this.integral = integral;
    }

    public Integer getIntegral() 
    {
        return integral;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("communityId", getCommunityId())
            .append("date", getDate())
            .append("operationId", getOperationId())
            .append("content", getContent())
            .append("type", getType())
            .append("integral", getIntegral())
            .toString();
    }
}
